<div id="top-menu">
	<div class="menu-left-corners">
		<div class="menu-right-corners">
			<ul id="nav" class="dropdown dropdown-horizontal menu">	
	
				<?php $class = (isset($this->params['pass'][0]) && $this->params['pass'][0] == 'index')?'menu-top current_page_item':'menu-top';?>
				<li class="first <?php echo $class;?>">
					<?php 
					echo $html->link(__("Strona główna", true), array('plugin'=>false,'controller'=>'pages','action'=>'index'),
			        array('escape'=>false,'class'=>$class)); 
			        ?>
				</li>
					
				<?php $group = $session->read("Auth.User.group") ?>
			
				<?php if($this->Session->check('Auth.User.id')){?>
				<?php $class = (isset($this->params['controller']) && $this->params['controller'] == 'users' && $group == 'users')?'menu-top current_page_item':'menu-top';?>
				<li class="last <?php echo $class;?>">
					<?php echo $html->link(__("Konta", true), array('plugin'=>false,'controller'=>'users','action'=>'admins'), array('escape'=>false,'class'=>$class)); ?>
					<ul>
						<li class="last <?php echo $class;?>">
							<?php echo $html->link(__("Administrator", true), array('plugin'=>false,'controller'=>'users','action'=>'index','admin'), array('escape'=>false,'class'=>$class)); ?>
						</li>
						<li class="last <?php echo $class;?>">
							<?php echo $html->link(__("Menedżerowie", true), array('plugin'=>false,'controller'=>'users','action'=>'index','manag'), array('escape'=>false,'class'=>$class)); ?>
						</li>	
						<li class="last <?php echo $class;?>">
							<?php echo $html->link(__("Pracownicy", true), array('plugin'=>false,'controller'=>'users','action'=>'index','emplo'), array('escape'=>false,'class'=>$class)); ?>
						</li>	
						<li class="last <?php echo $class;?>">
							<?php echo $html->link(__("Użytkownicy", true), array('plugin'=>false,'controller'=>'users','action'=>'index','users'), array('escape'=>false,'class'=>$class)); ?>
						</li>					

					</ul>
				</li>
				<li class="last <?php echo $class;?>">
				<?php echo $html->link(__("Strony", true), array('plugin'=>false,'controller'=>'cms','action'=>'index'), array('escape'=>false,'class'=>$class)); ?>
				</li>				
				<?php }?>
			</ul>
		</div>
	</div>
</div>